/************************************************************
 * Project Name         [Thinking_In_Java]
 * File Name            [Bank.java]
 * Creation Date        [02-Jul-2014]
 * 
 * Copyright© ge.y.yang@gmail.com All Rights Reserved
 * 
 * Work hard, play harder, think big and keep fit
 ************************************************************/
package pkg_08_thread.synchronization;

/**
 * 
 * @author 不落的太阳(Sean Yang)
 * @version 1.0
 * @since JDK 6
 * 
 */
public interface Bank {

	/**
	 * 转账方法
	 * 
	 * @param fromAccount
	 *            转出帐户
	 * @param toAccount
	 *            转入帐户
	 * @param amount
	 *            转账数量
	 */
	void transfer(int fromAccount, int toAccount, double amount);

	int size();
}
